
Ext.define('DCApp.model.Relic', {
    extend: 'DCApp.model.DataEntity',
    idProperty: 'objId',
    fields: [    
        {name: 'objId', type : 'int', text : '文物ID'},
        {name: 'objAuthor', text : '作者(窑口)'},
        {name: 'classa', text : '分类'},
        {name: 'objNo', text : '文物编号'},
        {name: 'objName', text : '文物名称'},
        {name: 'grade', text : '级别'},
        {name: 'objNumber', type : 'int', text : '正文字数'},
        {name: 'author'},
        {name: 'className'},
        {name: 'objProdarea'},
        {name: 'generateEra'},
        {name: 'eraBegin',type:'int'},
        {name: 'eraEnd',type:'int'},
        {name: 'description'},
        {name: 'note'},
        {name: 'keywords'},
        {name: 'docAuthor', text : '撰稿人'},
        {name: 'era'},        
        {name: 'showLocation'},
        {name: 'showFrom', type: 'date',  dateFormat: 'Y-m-d H:i:s'},
        {name: 'showTo', type: 'date',  dateFormat: 'Y-m-d H:i:s'},
        {name: 'material'},
        {name: 'colorMode'},
        {name: 'dcChirography'},
        {name: 'dcOriginplace'},
        {name: 'dcCulturaltype'},
        {name: 'dcKilns'},
        {name: 'objsize'},
        {name: 'introduction'},
        {name: 'origin'},
        {name: 'unearthed'},        
        {name: 'classiii'},
        {name: 'notesnum'},
        {name: 'notesstr'}
    ],
    manyToMany:['Image','Thesis','Doc']
});
 
 
